Related Vulnerabilities: CVE-2021-22898  

A security issue has been found in curl before version 7.77.0. curl supports the -t command line option, known as CURLOPT_TELNETOPTIONS in libcurl. This rarely used option is used to send variable=content pairs to TELNET servers. Due to flaw in the option parser for sending NEW_ENV variables, libcurl could be made to pass on uninitialized data from a stack based buffer to the server. Therefore potentially revealing sensitive internal information to the server using a clear-text network protocol.

Severity Medium

Remote Yes

Type Information disclosure

Description

A security issue has been found in curl before version 7.77.0. curl supports the -t command line option, known as CURLOPT_TELNETOPTIONS in libcurl. This rarely used option is used to send variable=content pairs to TELNET servers. Due to flaw in the option parser for sending NEW_ENV variables, libcurl could be made to pass on uninitialized data from a stack based buffer to the server. Therefore potentially revealing sensitive internal information to the server using a clear-text network protocol.

AVG-2000 lib32-libcurl-gnutls 7.76.1-1 Medium Vulnerable

AVG-1999 libcurl-gnutls 7.76.1-1 Medium Vulnerable

AVG-1998 lib32-libcurl-compat 7.76.1-1 High Vulnerable

AVG-1997 libcurl-compat 7.76.1-1 High Vulnerable

AVG-1996 lib32-curl 7.76.1-1 High Vulnerable

AVG-1995 curl 7.76.1-1 High Vulnerable

https://curl.se/docs/CVE-2021-22898.html
https://github.com/curl/curl/commit/39ce47f219b09c380b81f89fe54ac586c8db6bde

Workaround
==========

The flaw can be mitigated by avoiding to use the -t command line option and CURLOPT_TELNETOPTIONS.